//
//  STHairService.h
//  YiYueHairdresser
//
//  Created by 路人甲 on 2018/10/31.
//  Copyright © 2018年 YuYiLian. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface STHairService : NSObject

#pragma mark -美发师
//查询认证状态
+(void)getStylistAuthStatus:(STResultObjectBlock)completion;

#pragma mark -美发师服务管理
//美发师服务删除
+(void)deteleBarberServerWithServiceId:(int)serviceId online:(int)online completion:(STResultObjectBlock)completion;

//获取服务详情信息POST /stylistServer/getServiceInfo
+(void)getBarberServerInfoWithServiceId:(long)serviceId completion:(STResultObjectBlock)completion;

//美发师服务上下架POST /stylistServer/isOnline
+(void)changeBarberServerLineStatusWithServiceId:(int)serviceId online:(int)online completion:(STResultObjectBlock)completion;

//美发师服务列表查询接口POST /stylistServer/list
+(void)getBarberServerListWithOnline:(int)online page:(int)page completion:(STResultObjectBlock)completion;

///美发师服务保存查询接口POST /stylistServer/save
+(void)saveBarberServerWithParameters:(NSDictionary *)paratemers completion:(STResultObjectBlock)completion;


///美发师服务类目
/**POST /category/getByCondition
 *packageType 套餐查询类型，0全部 1单项套餐里的可选类目 2套餐中的可选类目
 */
+(void)getBarberConditionWithPackageType:(int)packageType completion:(STResultObjectBlock)completion;
//平台类目id 获取服务及选项
+(void)getCategoryById:(long)categoryId completion:(STResultObjectBlock)completion;

//我入驻/签约的门店
+(void)getHairStoreUrl:(STResultObjectBlock)completion;

#pragma mark -美发师时间管理
//查询美发师的时间设置列表
+(void)getStylistTimeSetting:(STResultObjectBlock)completion;
//单个的新增或者更新
+(void)updateStylistTimeSetOneParatemer:(NSDictionary *)parameter completion:(STResultObjectBlock)completion;
//多个的新增或者更新
+(void)updateStylistTimeSetArrParatemer:(NSArray *)parameters completion:(STResultObjectBlock)completion;

//订单统计
+(void)getStylistOrderCount:(STResultObjectBlock)completion;
+(void)getStylistSuccessOrdersWithFrom:(NSString *)fromTime end:(NSString *)endTime completion:(STResultObjectBlock)completion;

#pragma mark -美发师门店相关
//查询当前门店，技师申请状态
+(void)getHairJoinStoreStatusWithStoreId:(long)storeId completion:(STResultObjectBlock)completion;

//查询美发师入驻/签约门店
+(void)getHairSelfStore:(STResultObjectBlock)completion;

//美发师申请入驻/签约门店
+(void)joinStoreWithStoreId:(long)storeId apply:(NSString *)apply completion:(STResultObjectBlock)completion;

//美发师解约门店
+(void)relieveStoreWithStoreId:(long)storeId completion:(STResultObjectBlock)completion;

//搜索门店
+(void)searchStoreWithStoreStr:(NSString *)storeStr completion:(STResultObjectBlock)completion;

//调整查询门店
/**
 *
 *categoryIds (Array[integer], optional): 理发类目Id ,
 *cityId (integer, optional): 城市ID，默认0 ,
 *districtId (integer, optional): 区ID，默认0 ,
 *lat (number, optional): 纬度 ,
 *lng (number, optional): 经度 ,
 *maxDistance (integer, optional): 距离范围（单位米），默认0不限制 ,
 *provinceId (integer, optional): 省ID，默认0 ,
 *sortType (integer, optional): 排序类型，0综合排序，1距离最近，2月结单量最多，3评论量最多 ,
 *
 */
+(void)relieveStoreWithCategoryIds:(NSArray *)categoryIds cityId:(int)cityId districtId:(int)districtId maxDistance:(long)maxDistance provinceId:(int)provinceId sortType:(int)sortType completion:(STResultObjectBlock)completion;























@end
